/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.rate.event.service;

import org.springblade.core.mp.support.Query;
import org.springblade.core.secure.BladeUser;
import org.springblade.modules.rate.event.entity.Event;
import org.springblade.modules.rate.event.vo.EventVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.modules.rate.event.vo.audit.EventAuditOperationVO;
import org.springblade.modules.rate.event.vo.audit.EventAuditReqVO;
import org.springblade.modules.rate.event.vo.detail.EventDetailVO;
import org.springblade.modules.rate.event.vo.detail.EventNoticeVO;
import org.springblade.modules.rate.event.vo.dismiss.EventDismissVO;
import org.springblade.modules.rate.event.vo.like.EventLikeOperationVO;

import java.util.List;

/**
 * 事件表 服务类
 *
 * @author Blade
 * @since 2021-09-20
 */
public interface IEventService extends BaseService<Event> {

	/***
	 * 小程序分页
	 * @param page
	 * @param eventVO
	 * @return
	 */
	IPage<Event> getEventPage(IPage<Event> page, EventVO eventVO);
	/**
	 * 获取部门下的未审核事件
	 */
	IPage<Event> getCommitEvent(IPage<Event> page,BladeUser bladeUser);
	/**
	 * 获取部门下的未审核事件
	 */
	IPage<Event> getUnAuditEvvent(IPage<Event> page,EventAuditReqVO auditReqVO);
	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param event
	 * @return
	 */
	IPage<EventVO> selectEventPage(IPage<EventVO> page, EventVO event);

	/**
	 * 发布事件
	 */
	Boolean publish(EventVO eventVO);
	/**
	 * 无和室内和
	 */
	/**
	 * 审核操作
	 */
	Boolean audit(EventAuditOperationVO auditOperationVO);
	/**
	 * 加分操作
	 */
	Boolean pickLike(EventLikeOperationVO likeOperationVO);
	/**
	 * 解封
	 */
	Boolean dismiss(EventDismissVO dismissVO);
	/**
	 * 详情
	 */
	EventDetailVO getDetail(Event event);
	/**
	 * 获取时间通知相关数字
	 */
	EventNoticeVO getEventNotice();
}
